<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<tpl> include file='sys_head_config.html' </tpl>
</div>
</head>
<body>
<div class="tabbar">
  <ul class="tab_btns" id="COPYYH2">
    <li class="current"><a href="baseinfo.manage.php?action=list"><span><tpl> $langBInfoSetup </tpl></span></a></li>
    <li><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('baseinfo.manage.php?action=mail');ST(1,1);"><span><tpl> $langBSMTPSetup </tpl></span></a></li>
    <li><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('baseinfo.manage.php?action=system');ST(2,2);"><span><tpl> $langBShopSystemSetup </tpl></span></a></li>
    <li><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('baseinfo.manage.php?action=payset');ST(3,3);"><span><tpl> $langBPayAccountSet </tpl></span></a></li>
  </ul>
	<div class="tab_notes" id="copyyh0">
		<ul class="notesbg block"><span><h4><tpl> $langBFillInFullShopInfo </tpl></h4></span></ul>
		<ul class="notesbg"><span><h4><tpl> $langBSMTPShopSendEmail </tpl></h4></span></ul>
		<ul class="notesbg"><span><h4><tpl> $langBUpdataAccessoriesImageShopCookieSetup </tpl></h4></span></ul>
		<ul class="notesbg"><span><h4><tpl> $langBPayAccountAddCanPay </tpl></h4></span></ul>
	</div>
	<!-- message -->
	<div id="message"></div>
	<!-- message end -->
</div>
  <div id="product-help" class="admincp_form">
<div id="result_content">
  <form action="baseinfo.manage.php?action=save" method="post" name="form1" id="form1">
    <table border="0" cellpadding="0" cellspacing="0" class="from_table">
      <tr>
        <th><tpl> $langBWebName </tpl>:</th>
        <td class="td rowform"><input name="txtsitename" type="text" id="txtsitename" class="txtinput" value="<tpl> $baseinfo_websit_array.site_name </tpl>" /></td>
        <td class="vtop tips2"><label style="display:none" for="txtsitename" class="wrong" metaDone="true" generated="true"></label></td>
      </tr>
      <tr>
        <th><tpl> $langBWebAddress </tpl>:</th>
        <td class="td rowform"><tpl> $baseinfo_websit_array.site_url </tpl></td>
        <td class="vtop tips2"><label style="display:none" for="txtwebsite" class="wrong" metaDone="true" generated="true"></label></td>
      </tr>
      <tr>
        <th><tpl> $langBCoName </tpl>:</th>
        <td class="td rowform"><input name="txtcompany" type="text" id="txtcompany" class="txtinput" value="<tpl> $baseinfo_contact_array.companyname </tpl>" /></td>
        <td class="vtop tips2"><label style="display:none" for="txtcompany" class="wrong" metaDone="true" generated="true"></label></td>
      </tr>
      <tr>
        <th><tpl> $langBLinkMan </tpl>:</th>
        <td class="td rowform"><input name="txtcontactman" type="text" id="txtcontactman" class="txtinput" value="<tpl> $baseinfo_contact_array.contactman </tpl>" /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th><tpl> $langBSex </tpl>:</th>
        <td class="td rowform"><input type="radio" name="rdogenre" value="0" <tpl> if $baseinfo_contact_array.genre eq "0" </tpl> checked <tpl> /if </tpl> /><tpl> $langBMan </tpl>   <input type="radio" name="rdogenre" value="1" <tpl> if $baseinfo_contact_array.genre eq "1" </tpl> checked <tpl> /if </tpl> /><tpl> $langBWoman </tpl></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th>E-mail:</th>
        <td class="td rowform"><input name="txtemail" type="text" id="txtemail" class="txtinput" value="<tpl> $baseinfo_contact_array.email </tpl>" /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="tr">
        <th><tpl> $langBLiaisonAddress </tpl>:</th>
        <td class="td rowform"><input name="txtaddress" type="text" class="txtinput" id="txtaddress" value="<tpl> $baseinfo_contact_array.address </tpl>" /></td>
        <td class="td"></td>
      </tr>
      <tr>
        <th class="th"><tpl> $langBFaxes </tpl>:</th>
        <td class="td rowform"><input name="txtfax" type="text" class="txtinput" id="txtfax" value="<tpl> $baseinfo_contact_array.fax </tpl>" />        </td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th><tpl> $langBMobileTelephone </tpl>:</th>
        <td class="td rowform"><input name="txtmobilephone" type="text" id="txtmobilephone" class="txtinput" value="<tpl> $baseinfo_contact_array.mobilephone </tpl>" /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th> <tpl> $langBPostalcode </tpl>:</th>
        <td class="td rowform"><input name="txtzip" type="text" id="txtzip" class="txtinput" value="<tpl> $baseinfo_contact_array.zip </tpl>" />        </td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th><tpl> $langBLiaisonPhone </tpl>:</th>
        <td class="td rowform"><input name="txtphone" type="text" id="txtphone" class="txtinput" value="<tpl> $baseinfo_contact_array.contactphone </tpl>" />        </td>
        <td class="vtop tips2"></td>
      </tr>
      <tr style="height:6px;background-color: #E6F5FF;">
        <td colspan="3" style="height:6px;background-color: #E6F5FF;"></td>
      </tr>
      <tr>
        <th><tpl> $langBWebTitle </tpl>:</th>
        <td class="td rowform"><input name="txtsitetitle" type="text" id="txtsitetitle" class="txtinput" value="<tpl> $baseinfo_websit_array.site_title </tpl>" /></td>
        <td class="vtop tips2"><label style="display:none" for="txtsitetitle" class="wrong" metaDone="true" generated="true"></label></td>
      </tr>
      <tr>
        <th><tpl> $langBLogoUrl </tpl>:</th>
        <td class="td rowform" style="padding-right:10px"><input name="txtlogourl" type="text" id="txtlogourl" class="txtinput" value="<tpl> $baseinfo_websit_array.logo_url </tpl>" />
          <br />
          <img style="margin-left:5px" src='<tpl> $baseinfo_websit_array.logo_url|default:"$site_url/templates/system_new/images/logo.png" </tpl>'  /></td>
        <td  class="vtop tips2"><tpl> $langBLogoDescription </tpl></td>
      </tr>
      <tr>
        <th> meta<tpl> $langBKeyWord </tpl>:</th>
        <td class="td rowform"><textarea name="txtmetakey" cols="50" rows="6" class="tarea" id="txtmetakey"><tpl> $baseinfo_websit_array.meta_keyword </tpl></textarea></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th> meta<tpl> $langBBewrite </tpl>:</th>
        <td class="td rowform"><textarea name="txtmetades" cols="50" rows="6" class="tarea" id="txtmetades"><tpl> $baseinfo_websit_array.meta_desc </tpl></textarea></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr  style="height:6px;	background-color: #E6F5FF;">
        <td height="6px"colspan="3" style="height:6px;background-color: #E6F5FF;"></td>
      </tr>
      <tr>
        <th> <tpl> $langBCopyrightHaving </tpl>:</th>
        <td class="td rowform"><textarea name="txtpoweredby" cols="50" rows="6" class="tarea" id="txtpoweredby"><tpl> $baseinfo_websit_array.poweredby </tpl></textarea>        </td>
        <td class="vtop tips2"></td>
      </tr>
      <tr>
        <th><tpl> $langBICPBack </tpl>:</th>
        <td class="td rowform"><textarea name="txticprecord" cols="50" rows="6" class="tarea" id="txticprecord"><tpl> $baseinfo_websit_array.icprecord </tpl></textarea>        </td>
        <td class="vtop tips2"></td>
      </tr>
    
    </table>
	<div class="btn_marginleft">
            <input type="hidden" name="genre" value="setting" />
            <span class="btn_left"><input type="submit" name="Submit" value="<tpl> $langBSubmit </tpl>" class="btn_submit"/></span></div>
  </form>
</div>
</div>

<!-- help html -->
<tpl> include file='sys_right_help.html' </tpl>
<!-- help html END -->
</body>
<script>
$(document).ready(function() {
	//地区选择
	tonext('#c1');

	hideLoading();
	
	var msg = "<tpl> $langBInfoSaveOk </tpl>";
	var continu = $('#continu')[0];
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(){
			hideLoading();
			showMessage(msg,1);
			//goto_top();
		},
		type:      'post',
		dataType:  'json'
	};
	//submit
	$("#form1").validate({
		errorClass: "wrong",
		rules: {
			txtsitename: {required:true},
			txtwebsite: {required:true},
			txtsitetitle: {required:true},
			txtcompany: {required:true}
		},
		messages: {
			txtsitename: {required: "<tpl> $langBFillInWebName </tpl>"},
			txtwebsite: {required: "<tpl> $langBFillInWeb </tpl>"},
			txtsitetitle: {required: "<tpl> $langBFillInWebTitle </tpl>"},
			txtcompany: {required: "<tpl> $langBFillInCoName </tpl>"}
		},
		submitHandler: function() {
			$('#form1').ajaxSubmit(options);
		}
	});
});
//地区选择
function tonext(whos) {
	$(whos).change(
		function(){
			var valarray=$(this).val().split('||');
			if (valarray[1]=='1') {
				$(this).next().attr('disabled','true').html('<option value="" selected="selected"><tpl> $langCDataToLoading </tpl></option>');
				$.get(
					'../home/tohtml.php',
					{action:'get_area',id:valarray[0],random_number:Math.random()},
					function(data){
						DataArray = data.split("|||");
						var a='';
						for (var i = 0; i<DataArray.length-1; i++) {
							att=DataArray[i].split("||");
							id=att[0];
							cla=att[2];
							a+='<option value="'+id+'||'+cla+'">'+att[1]+((cla=='1')?' ->':'')+'</option>';
						}
						
					$(whos).next().removeAttr('disabled').html('<option value="" selected="selected"></option>'+a).nextAll().html('');
					tonext($(whos).next());
					}
				)
			} else {
				$(whos).nextAll().html('').attr('disabled','true');
			};
		}
	)
};
</script>
</html>
